﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GlobalReference/GlobalReferenceMaster.master"
    AutoEventWireup="true" CodeBehind="AuthorizationGroupsForm.aspx.cs" Inherits="Eassets.UI.GlobalReference.AuthorizationGroupsForm" %>

<%@ Register Src="~/Components/TreeBrowser.ascx" TagName="TreeBrowser" TagPrefix="osm" %>
<%@ Register Src="~/Components/FlashMessage.ascx" TagName="FlashMessage" TagPrefix="osm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <script src="../styles/Common.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Contnt2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="formtitle">
        <asp:Label ID="labelFormTitle" runat="server" Text="Authorization Groups"></asp:Label>
    </div>
    <table width="100%" height="5px">
        <tbody>
            <tr>
                <td align="right">
                    <osm:FlashMessage ID="FlashMessage1" runat="server" />
                    &nbsp;&nbsp;&nbsp;
                </td>
            </tr>
        </tbody>
    </table>
    <fieldset>
        <ul class="form">
            <li>
                <div class="gridfield">
                    <asp:GridView ID="gridViewAuthorizationGroup" runat="server" Caption="Authorization Groups"
                        AutoGenerateColumns="false" CssClass="ColStyle" EmptyDataText="No data to display"
                        AllowPaging="True" PageSize="10" OnSelectedIndexChanged="gridViewAuthorizationGroup_SelectedIndexChanged"
                        OnRowCreated="gridViewAuthorizationGroup_RowCreated">
                        <%--                                               
                        OnPageIndexChanging="gridViewBusinessUnit_PageIndexChanging" OnRowCreated="gridViewBusinessUnit_RowCreated"
                        --%>
                        <RowStyle CssClass="RowStyle" />
                        <AlternatingRowStyle CssClass="AltRowStyle" />
                        <HeaderStyle CssClass="GridHeader" />
                        <SelectedRowStyle CssClass="SelectedRowStyle" />
                        <Columns>
                            <asp:CommandField ItemStyle-Width="20" ShowSelectButton="True" ButtonType="Image"
                                SelectImageUrl="~/styles/images/Select_icon_button.gif" />
                            <asp:BoundField DataField="AuthorizationGroupId" HeaderText="AuthorizationGroupId"
                                Visible="True" />
                            <asp:BoundField DataField="Code" HeaderText="Authorization Group Code" ItemStyle-Width="10" />
                            <asp:BoundField DataField="Description" HeaderText="Description" />
                        </Columns>
                    </asp:GridView>
                </div>
            </li>
            <li>
                <br />
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formlable">
                    <asp:Label ID="labelAuthorizationGroupCode" runat="server" Text="Authorization Group Code"
                        CssClass="legendlabel_size2"></asp:Label>
                    <asp:TextBox ID="textBoxAuthorizationGroupCodeAdd" runat="server" Width="100px" MaxLength="8"
                        Enabled="true" CssClass="textbox_size2Upper" TabIndex="1"></asp:TextBox>
                    <%--                                            <asp:RequiredFieldValidator ID="requiredFieldValidatorBusinessUnitCodeAdd" runat="server" ErrorMessage="*" ControlToValidate ="textBoxBusinessUnitAdd"></asp:RequiredFieldValidator>  
                    --%>
                    <font color="#FF0000">*</font>
                </div>
            </li>
            <li>
                <div class="formlable">
                    <asp:Label ID="labelAuthorizationGroupDescription" runat="server" Text="Description"
                        CssClass="legendlabel_size2"></asp:Label>
                    <asp:TextBox ID="textBoxAuthorizationGroupDescriptionAdd" runat="server" Width="300px"
                        MaxLength="50" TabIndex="2" Enabled="true" CssClass="textbox_size2"></asp:TextBox>
                    <%--                                            <asp:RequiredFieldValidator ID="requiredFieldValidatorusinessUnitDescriptionAdd" runat="server" ErrorMessage="*" ControlToValidate ="textBoxBusinessUnitDescriptionAdd"></asp:RequiredFieldValidator>  
                    --%>
                    <font color="#FF0000">*</font>
                </div>
            </li>
            <%--  <li>
                <div class="buttonlist2">
                    <asp:Button ID="buttonSave" runat="server" Text="Save" Enabled="true" CssClass="button_normal"
                        OnClick="ButtonAuthorizationGroupsSave_Click" TabIndex="3" />
                    <%--  OnClick="buttonSave_Click1"--%>
            <%--      <asp:Button ID="buttonCancel" runat="server" Text="Cancel" CssClass="button_normal" />
            </li>--%>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div>
                    <table>
                        <tr>
                            <td class="style4">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="buttonAdd" runat="server" Text="Add" CssClass="buttonstyle" OnClick="ButtonAdd_Click" />
                                <asp:Button ID="buttonModify" runat="server" Text="Modify" CssClass="buttonstyle"
                                    OnClick="ButtonModify_Click" />
                                <asp:Button ID="buttonDelete" runat="server" Text="Delete" CssClass="buttonstyle"
                                    OnClick="ButtonDelete_Click" visible="false"/>
                            </td>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="buttonSave" runat="server" Text="Save" CssClass="buttonstyle" OnClick="ButtonSave_Click" />
                                <asp:Button ID="buttonClear" runat="server" Text="Cancel" CssClass="buttonstyle"
                                    OnClick="ButtonClear_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
        </ul> </div> </div>
    </fieldset>
</asp:Content>
